Skip to main content
GET
/
media_library
Get media library
curl --request GET \
  --url https://your_a2_service/media_library
[
  {
    "cdn_path": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "file_size": 123,
    "filename": "<string>",
    "height": 123,
    "mime": "<string>",
    "no": 123,
    "path": "<string>",
    "storage": "<string>",
    "updated_at": "2023-11-07T05:31:56Z",
    "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "width": 123
  }
]

Query Parameters

user_id
string<uuid> | null

The owner's id of media library

Response

Successful Response

cdn_path
string
required

The CDN url from which the media can be accessed

file_size
integer
required

The file size of the media

filename
string
required

The filename of media library

height
integer
required

The height of the media

mime
string
required

The mime-type of the media

no
integer
required

The no of media library

path
string
required

Relative paths stored in the storage

storage
string
required

The storage type where the media is stored

user_id
string<uuid>
required

The owner's id of media library

width
integer
required

The width of the media

created_at
string<date-time> | null

The date and time the entity was created.

updated_at
string<date-time> | null

The date and time the entity was last updated.